<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="jquery插件" />
<meta name="description" content="Helloweba演示平台，演示XHTML、CSS、jquery、PHP案例和示例" />
<title>jQuery实现回到顶部按钮效果</title>
<link rel="stylesheet" type="text/css" href="../css/main.css" />
<style type="text/css">
.demo{height:1300px; padding-top:100px}
.demo p{text-align:center; height:32px; line-height:32px; font-size:16px}
.demo p span{margin:20px}
.demo p a.cur{color:#f60; font-weight:bold}
a.backToTop{width:28px; height:24px; background:#eaeaea url(top.gif) no-repeat -21px 4px; text-indent:-999em}
a.backToTop:hover{background-position:-21px -19px}
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="gotoTop.js"></script>
<script type="text/javascript">
$(function(){
	$(".backToTop").goToTop();
	$(window).bind('scroll resize',function(){
		$(".backToTop").goToTop();
	});
});
</script>
</head>

<body>
<div id="header">
   	<div id="logo"><h1><a href="http://www.helloweba.com" title="返回helloweba首页">helloweba</a></h1></div>
</div>

<div id="main">
  	<h2 class="top_title"><a href="http://www.helloweba.com/view-blog-196.html">jQuery实现回到顶部按钮效果</a></h2>
   	<div class="demo">
    	<p>提示：请将页面向下滚动即可看到效果。</p>
    	<p><span><a href="index.html">DEMO1</a></span><span><a href="index2.html" class="cur">DEMO2</a></span><span><a href="index3.html">DEMO3</a></span></p>
        <br/>
        <div class="ad_demo"><script src="/js/ad_js/ad_demo.js" type="text/javascript"></script></div><br/>

    </div>
</div>
<div id="footer">
    <p>Powered by helloweba.com  允许转载、修改和使用本站的DEMO，但请注明出处：<a href="http://www.helloweba.com">www.helloweba.com</a></p>
</div>
<p id="stat"><script type="text/javascript" src="http://js.tongji.linezing.com/1870888/tongji.js"></script></p>
</body>
</html>
